*{
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
}
ul{
    list-style: none;
}
html{
    height: 100%;

}
body{
    height: 100%;
    display: flex;
    flex-direction: column;
}
#test-editor{
    flex: 1;
}
.title-bar{
    height: 63px;
    display: flex;
    align-items: center;
    padding: 0 26px;
    
}
#headline{
 flex: 1;   
 height: 100%;
 outline: none;
 border: 0px;
 padding-left: 14px;
 font-size: 24px;
 font-weight: 500px;
 color: #1d2129;
}
.title-right{
    display: flex;
}
#draft{
    border: 1px solid #1d7dfa;
    color: #1d7dfa;
    background-color: #fff;
    padding: 2px 16px;
   height: 32px;
   margin: 0 6px;
}
.pub{
    position: relative;
    height: 32px;
    margin: 0 6px;
}
.pub>button{
    width: 100%;
    height: 100%;
    padding: 2px 16px;
    background-color: #1d7dfa;
    color: #fff;
    border: 1px solid #1d7dfa; 
}
.title-right .img{
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 4px;
}
.title-right .img img{
    width: 100%;
    height: 100%;
}
.panel{
    display: none;
    position: absolute;
    top: 52px;
    right: -10px;
    width: 560px;
    z-index: 99;
    border: 1px solid #ddd;
    background-color: #fff;
    font-size: 14px;
}
.panel::before{
    content: "";
    position: absolute;
    margin-left: -.5rem;
    top: -.6rem;
    right: 5rem;
    width: 1rem;
    height: 1rem;
    background-color: #fff;
    border: 1px solid #ddd;
    border-right: none;
    border-bottom: none;
    -webkit-transform: rotate(
45deg
);
    transform: rotate(
45deg
);
}
.panel h3{
    padding: 24px 20px 16px 20px;
    font-weight: 500;
    font-size: 18px;
    border-bottom: 1px solid #ddd;
}
.panel .form-item{
    display: flex;
    margin: 20px;
}
.panel .form-item .classify-list{
    display: flex;
    flex-wrap: wrap;
    flex: 1;
} 
.classify-list li{
    margin-right: 5px;
    margin-bottom: 10px;
    padding: 0 .7rem;
    font-size: 14px;
    line-height: 28px;
    width: 88px;
    height: 28px;
    white-space: nowrap;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    border-radius: 2px;
    cursor: pointer;
    color: #86909c;
    background-color: #f4f5f5;
}
.classify-list .active{
    color: #1d7dfa;
    background-color: #e8f3ff;
}
/* 选择标签 */
.label{
    width: 85px;
}
#label-right{
    width: 330px;
    height: 30px;
    padding: 0 12px;
    border: 1px solid #ddd;

}
/* 选项图片 */
/* form{
    position: relative;
} */
#image-preview{
    width:100%;
    height: 100%;
    max-width: 120px;
    height: 120px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    position: absolute;
    left: 0px;
    top: 0px;
    display: none;
}
#file{
    display: none;
}
.adding{
    width: 120px;
    height: 120px;
    border: 1px solid #ddd;
}
.adding #add{
    width: 100%;
    height: 100%;
    text-align: center;
    position: relative;
}
#del{
    position: absolute;
    top: 0px;
    right: 0px;
}
.add-center{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
}
#del{
    display: none;
}
/* 提交 */
.panel-footer{
    height: 72px;
    padding: 0 20px;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
}
#foo-btn{
    border-radius: 4px;
    width: 90px;
    padding: 4px 0;
    cursor: pointer;
    background-color: #1d7dfa;
    color: #fff;
    border: 1px solid #1d7dfa; 
}
#foo-cancel{
    border-radius: 4px;
    width: 90px;
    padding: 4px 0;
    cursor: pointer;
    margin-right: 8px;
    background-color: #fff;
    border: 1px solid #2986ff;
    border-color: #1e80ff;
    color: #1e80ff;
}

/* 提交错误提示 */
.err{
    position: fixed;
    top: 40px;
    right: 20px;
    width: 185px;
    height: 55px;
    line-height: 55px;
    text-align: center;
    background-color: #F6E3E3;
    color: #EE3333;
    z-index: 999;
    border-radius: 4px;
    display: none;
}